package com.ruoyi.common.core.enums;

import lombok.Getter;

@Getter
public enum OrderStatusEnum {


    CREATE(0, "数据创建"),

    PASS(1, "市级分发"),

    DISPAUSE(2, "区级分发"),

    STRIKE(3, "数据核查");


    final Integer code;
    final String desc;


    OrderStatusEnum(int code, String desc) {
        this.code = code;
        this.desc = desc;
    }


    public static String getDescValue(int code) {
        for (OrderStatusEnum viewTypeEnum : values()) {
            if (code == viewTypeEnum.code) {
                return viewTypeEnum.getDesc();
            }
        }
        return null;
    }

}
